Current Location: Home> Function Categories> intdiv

intdiv

Round the division result
Name:intdiv
Category:math
Programming Language:php
One-line Description:Perform integer division operation.

Definition and usage

intdiv() function is used to perform integer division operation.

Example

Perform several integer division operations:

 <?php
echo intdiv ( 8 , 4 ) ;
echo intdiv ( 5 , 2 ) ;
echo intdiv ( - 5 , - 2 ) ;
?>

Run the instance

grammar

 intdiv ( dividend , divisor ) ;
parameter describe
divide Required. Specifies the number to be divided.
divisor Required. Specifies the number used to divide the divisor.
Similar Functions
Popular Articles